Problem Note 37323: Links in PDF files created with ANCHOR= no longer link to internal pages
If an ODS PDF ANCHOR= statement is used to create an anchor from which a URL links to a specific page in a PDF file, the links will exist, but might not work. The URL links are converted to all lower case letters, so despite attempts to use UPCASE or mixed case values when a URL= or LINK= argument is used, the links are in lower case.
To circumvent the problem, use all lower case letters for the ANCHOR= value(s).
The problem and the circumvention are illustrated on the Full Code tab.
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled HP-UX | 9.2 TS1M0 | 9.2 TS2M3 |
Windows Vista | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2008 | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.2 TS2M3 |
z/OS | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The code below creates two PDF files, PROBLEM.PDF which shows the link from the footnote from Page 2 on, but the link goes nowhere. The file FIXED.PDF shows the same link; however, when the footnote is clicked, the PDF file links to Page 1.
/* Problem */
title;
ods escapechar="^";
ods pdf file="problem.pdf" notoc;
ods pdf anchor="PAGE1";
proc report nowd data=sashelp.class;
footnote;
run;
proc print data=sashelp.air;
footnote1 "^S={URL='#PAGE1'}Return to First Page";
run;
ods pdf close;
/* Circumvention */
ods escapechar="^";
ods pdf file="fixed.pdf";
/* The ANCHOR= value is in lower case. */
/* If this is a macro variable, the */
/* LOWCASE function can be used. */
/* For example: */
/* anchor="%sysfunc(lowcase(&val))" */
ods pdf anchor="page1" notoc;
proc report nowd data=sashelp.class;
footnote;
run;
proc print data=sashelp.air;
footnote1 "^S={URL='#PAGE1'}Return to First Page";
run;
ods pdf close;
Links in PDF files created with ANCHOR= no longer link to internal pages.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2009-10-09 08:39:11 |
Date Created: | 2009-10-02 10:22:24 |